<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>document2html: src/main.cpp File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">document2html
   &#160;<span id="projectnumber">1.0</span>
   </div>
   <div id="projectbrief">Documents to HTML converter</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('main_8cpp.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#namespaces">Namespaces</a> &#124;
<a href="#func-members">Functions</a> &#124;
<a href="#var-members">Variables</a>  </div>
  <div class="headertitle">
<div class="title">main.cpp File Reference</div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &lt;iostream&gt;</code><br />
<code>#include &lt;string&gt;</code><br />
<code>#include &quot;libs/getoptpp/getoptpp.hpp&quot;</code><br />
<code>#include &quot;<a class="el" href="archive_8hpp_source.html">libs/fileext/archive/archive.hpp</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="csv_8hpp_source.html">libs/fileext/csv/csv.hpp</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="doc_8hpp_source.html">libs/fileext/doc/doc.hpp</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="docx_8hpp_source.html">libs/fileext/docx/docx.hpp</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="epub_8hpp_source.html">libs/fileext/epub/epub.hpp</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="excel_8hpp_source.html">libs/fileext/excel/excel.hpp</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="html_8hpp_source.html">libs/fileext/html/html.hpp</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="json_8hpp_source.html">libs/fileext/json/json.hpp</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="odt_8hpp_source.html">libs/fileext/odt/odt.hpp</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="pdf_8hpp_source.html">libs/fileext/pdf/pdf.hpp</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="ppt_8hpp_source.html">libs/fileext/ppt/ppt.hpp</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="rtf_8hpp_source.html">libs/fileext/rtf/rtf.hpp</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="txt_8hpp_source.html">libs/fileext/txt/txt.hpp</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="xml_8hpp_source.html">libs/fileext/xml/xml.hpp</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="pymagic_8hpp_source.html">libs/pymagic/pymagic.hpp</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="tools_8hpp_source.html">libs/tools.hpp</a>&quot;</code><br />
<code>#include &lt;dirent.h&gt;</code><br />
</div><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="namespaces"></a>
Namespaces</h2></td></tr>
<tr class="memitem:namespacedocument2html"><td class="memItemLeft" align="right" valign="top"> &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacedocument2html.html">document2html</a></td></tr>
<tr class="memdesc:namespacedocument2html"><td class="mdescLeft">&#160;</td><td class="mdescRight">Document to HTML converter. <br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a0fd57b041ea18f7f2e097556ef8ac221"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="main_8cpp.html#a0fd57b041ea18f7f2e097556ef8ac221">convertFile</a> (std::string input, std::string output, bool style, bool image)</td></tr>
<tr class="memdesc:a0fd57b041ea18f7f2e097556ef8ac221"><td class="mdescLeft">&#160;</td><td class="mdescRight">Convert single file.  <a href="#a0fd57b041ea18f7f2e097556ef8ac221">More...</a><br /></td></tr>
<tr class="separator:a0fd57b041ea18f7f2e097556ef8ac221"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aac13aeb9f95262e871f7eb40d566f541"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="main_8cpp.html#aac13aeb9f95262e871f7eb40d566f541">convertFolder</a> (std::string input, std::string output, bool style, bool image)</td></tr>
<tr class="memdesc:aac13aeb9f95262e871f7eb40d566f541"><td class="mdescLeft">&#160;</td><td class="mdescRight">Search files and convert them.  <a href="#aac13aeb9f95262e871f7eb40d566f541">More...</a><br /></td></tr>
<tr class="separator:aac13aeb9f95262e871f7eb40d566f541"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0ddf1224851353fc92bfbff6f499fa97"><td class="memItemLeft" align="right" valign="top"><a id="a0ddf1224851353fc92bfbff6f499fa97"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>main</b> (int argc, char *argv[])</td></tr>
<tr class="separator:a0ddf1224851353fc92bfbff6f499fa97"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="var-members"></a>
Variables</h2></td></tr>
<tr class="memitem:a808ea5d91f776e791e1a7d0f893bfd44"><td class="memItemLeft" align="right" valign="top"><a id="a808ea5d91f776e791e1a7d0f893bfd44"></a>
const std::string&#160;</td><td class="memItemRight" valign="bottom"><b>APP</b> = &quot;document2html&quot;</td></tr>
<tr class="separator:a808ea5d91f776e791e1a7d0f893bfd44"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1e20c163c03189acfe600030f8ef8b95"><td class="memItemLeft" align="right" valign="top"><a id="a1e20c163c03189acfe600030f8ef8b95"></a>
const std::string&#160;</td><td class="memItemRight" valign="bottom"><b>VERSION</b> = &quot;1.0&quot;</td></tr>
<tr class="separator:a1e20c163c03189acfe600030f8ef8b95"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><dl class="section author"><dt>Author</dt><dd>dmryutov (<a href="#" onclick="location.href='mai'+'lto:'+'dmr'+'yu'+'tov'+'@g'+'mai'+'l.'+'com'; return false;">dmryu<span style="display: none;">.nosp@m.</span>tov@<span style="display: none;">.nosp@m.</span>gmail<span style="display: none;">.nosp@m.</span>.com</a>) </dd></dl>
<dl class="section version"><dt>Version</dt><dd>1.0 </dd></dl>
<dl class="section date"><dt>Date</dt><dd>04.01.2018 &ndash; 05.01.2018 </dd></dl>
</div><h2 class="groupheader">Function Documentation</h2>
<a id="a0fd57b041ea18f7f2e097556ef8ac221"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0fd57b041ea18f7f2e097556ef8ac221">&#9670;&nbsp;</a></span>convertFile()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void convertFile </td>
          <td>(</td>
          <td class="paramtype">std::string&#160;</td>
          <td class="paramname"><em>input</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::string&#160;</td>
          <td class="paramname"><em>output</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>style</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>image</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Convert single file. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">input</td><td>Name of input file </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">output</td><td>Name of output directory </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">style</td><td>True if should extract styles </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">image</td><td>True if should extract images </td></tr>
  </table>
  </dd>
</dl>
<dl class="section since"><dt>Since</dt><dd>1.0 </dd></dl>

</div>
</div>
<a id="aac13aeb9f95262e871f7eb40d566f541"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aac13aeb9f95262e871f7eb40d566f541">&#9670;&nbsp;</a></span>convertFolder()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void convertFolder </td>
          <td>(</td>
          <td class="paramtype">std::string&#160;</td>
          <td class="paramname"><em>input</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::string&#160;</td>
          <td class="paramname"><em>output</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>style</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>image</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Search files and convert them. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">input</td><td>Name of input directory </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">output</td><td>Name of output directory </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">style</td><td>True if should extract styles </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">image</td><td>True if should extract images </td></tr>
  </table>
  </dd>
</dl>
<dl class="section since"><dt>Since</dt><dd>1.0 </dd></dl>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="main_8cpp.html">main.cpp</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li>
  </ul>
</div>
</body>
</html>
